home *** CD-ROM | disk | FTP | other *** search
-
-
-
- GGGGEEEETTTTSSSS((((3333SSSS)))) GGGGEEEETTTTSSSS((((3333SSSS))))
-
-
-
- NNNNAAAAMMMMEEEE
- gets, fgets - get a string from a stream
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
-
- cccchhhhaaaarrrr ****ggggeeeettttssss ((((cccchhhhaaaarrrr ****ssss))));;;;
-
- cccchhhhaaaarrrr ****ffffggggeeeettttssss ((((cccchhhhaaaarrrr ****ssss,,,, iiiinnnntttt nnnn,,,, FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _g_e_t_s reads characters from the standard input stream, _s_t_d_i_n, into the
- array pointed to by _s, until a new-line character is read or an end-of-
- file condition is encountered. The new-line character is discarded and
- the string is terminated with a null character.
-
- _f_g_e_t_s reads characters from the _s_t_r_e_a_m into the array pointed to by _s,
- until _n-1 characters are read, or a new-line character is read and
- transferred to _s, or an end-of-file condition is encountered. The string
- is then terminated with a null character.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- lseek(2), read(2), ferror(3S), fopen(3S), fread(3S), getc(3S), scanf(3S),
- stdio(3S), ungetc(3S).
-
- NNNNOOOOTTTTEEEESSSS
- When using _g_e_t_s, if the length of an input line exceeds the size of s,
- indeterminate behavior may result.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If end-of-file is encountered and no characters have been read, no
- characters are transferred to _s and a NULL pointer is returned. If a
- read error occurs, such as trying to use these functions on a file that
- has not been opened for reading, a NULL pointer is returned. Otherwise _s
- is returned.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-